package stark.app.function.screenshot;

import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder;

import org.jetbrains.annotations.NotNull;

import java.io.File;

import stark.app.R;
import stark.app.databinding.ItemScreenRecBinding;
import stark.common.basic.adapter.BaseDBRVAdapter;

/**
 * Author：daizhongbin on 2021/7/9
 * Email：1027154338@qq.com
 * Desc:
 */
public class ScreenRecAdapter extends BaseDBRVAdapter<File, ItemScreenRecBinding> {

    public ScreenRecAdapter() {
        super(R.layout.item_screen_rec, 0);
    }

    @Override
    protected void convert(@NotNull BaseDataBindingHolder<ItemScreenRecBinding> holder, File file) {
        ItemScreenRecBinding binding = holder.getDataBinding();
        binding.tvName.setText(file.getName());
    }
}
